import request from "@/utils/request";

export function createOrder(order){
    return request.post('/customer/createOrder',order)
}

export function findCustomerOrder(shopId){
    return request.get('/customer/findCustomerOrder?shopId='+shopId)
}

export function deleteOrder(orderId){
    return request.post('/customer/deleteOrder?orderId='+orderId)
}

export function payOrder(orderId){
    return request.post('/customer/payOrder?orderId='+orderId)
}

export function confirmOrder(orderId){
    return request.post('/business/confirmOrder?orderId='+orderId)
}

export function cancelOrder(orderId){
    return request.post('/business/cancelOrder?orderId='+orderId)
}